package com.eascs.admin.o2o.backfee.dao;

import org.springframework.stereotype.Repository;

import com.eascs.admin.common.dao.BaseO2oDao;
import com.eascs.admin.o2o.backfee.entity.O2OComBackFee;

/**
 * 
 * @author yuyong
 *
 */
@Repository
public class O2OComBackFeeDao extends BaseO2oDao {
	/**
	 * 校验单号  是否正在退还保证金
	 * @param loanapplyNo
	 * @return
	 */
	public O2OComBackFee checkBackStatus(String loanapplyNo){
		String sql="SELECT * FROM o2o_com_backfee t  WHERE t.loanapply_no=? and  t.bill_status='RUN' ";
		return this.findEntity(sql, O2OComBackFee.class, loanapplyNo);
	}
	
}
